/* ======================================= */
/* AFBEELDING RESIZER - Modern Styled      */
/* ======================================= */

.afbeelding-resizer-card {
  max-width: 100%;
  margin: 0 auto;
  padding: 35px;
  background: linear-gradient(145deg, var(--card-bg) 0%, var(--secondary-bg) 100%);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  color: var(--text-color);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.afbeelding-resizer-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-purple), var(--accent-blue), var(--accent-purple));
  background-size: 200% 100%;
  animation: afbeelding-gradient-shift 3s ease infinite;
}

@keyframes afbeelding-gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.afbeelding-resizer-card h1 {
  color: var(--text-primary);
  font-size: 2rem;
  margin-bottom: 8px;
  text-align: center;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.afbeelding-resizer-card-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 25px;
  font-weight: 400;
  line-height: 1.6;
}

/* Feedback */
.afbeelding-resizer-card-feedback {
  opacity: 0;
  transition: all 0.3s ease;
  transform: translateY(-10px);
  padding: 12px 16px;
  border-radius: 10px;
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--strength-strong) 0%, #059669 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.afbeelding-resizer-card-feedback.visible {
  opacity: 1;
  transform: translateY(0);
}

.afbeelding-resizer-card-feedback.error {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

/* Upload Area */
.afbeelding-resizer-card-upload-area {
  background: var(--overlay-dark);
  border: 2px dashed var(--border-dark);
  border-radius: 12px;
  padding: 50px 40px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  margin-bottom: 30px;
  backdrop-filter: blur(10px);
}

.afbeelding-resizer-card-upload-area:hover,
.afbeelding-resizer-card-upload-area.dragover {
  background: var(--overlay-medium);
  border-color: var(--accent-purple);
  box-shadow: 0 0 30px rgba(147, 51, 234, 0.2);
  transform: translateY(-2px);
}

.afbeelding-resizer-card-upload-area svg {
  color: var(--accent-purple);
  margin-bottom: 20px;
  filter: drop-shadow(0 4px 8px rgba(147, 51, 234, 0.3));
}

.afbeelding-resizer-card-upload-title {
  margin: 10px 0;
  font-size: 1.1rem;
  color: var(--text-primary);
}

.afbeelding-resizer-card-upload-hint {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 8px;
}

/* Preview Section */
.afbeelding-resizer-card-preview-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  margin-bottom: 30px;
}

.afbeelding-resizer-card-preview-box {
  background: var(--overlay-medium);
  border: 1px solid rgba(45, 55, 72, 0.5);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  transition: all 0.2s ease;
}

.afbeelding-resizer-card-preview-box:hover {
  border-color: var(--accent-purple);
  transform: translateY(-2px);
}

.afbeelding-resizer-card-preview-box h3 {
  font-size: 1.1rem;
  margin-bottom: 15px;
  color: var(--accent-blue);
  font-weight: 600;
}

.afbeelding-resizer-card-preview-box canvas {
  max-width: 100%;
  border-radius: 8px;
  background: var(--overlay-dark);
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  border: 1px solid var(--border-dark);
}

.afbeelding-resizer-card-preview-info {
  margin-top: 12px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-family: "Courier New", "Roboto Mono", monospace;
  font-weight: 600;
}

/* Controls */
.afbeelding-resizer-card-controls {
  background: var(--overlay-medium);
  border: 1px solid rgba(45, 55, 72, 0.5);
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 25px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.afbeelding-resizer-card-slider-section label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.afbeelding-resizer-card-slider-section #scaleValue {
  color: var(--accent-purple);
  font-weight: 700;
  font-size: 1.05rem;
}

.afbeelding-resizer-card-slider-section input[type="range"] {
  width: 100%;
  height: 8px;
  border-radius: 10px;
  background: linear-gradient(to right, var(--accent-purple) 0%, var(--border-dark) 0%);
  outline: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: all 0.3s ease;
}

.afbeelding-resizer-card-slider-section input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-purple-dark));
  cursor: pointer;
  border: 3px solid #1a1f2e;
  box-shadow: 0 2px 10px rgba(147, 51, 234, 0.5);
  transition: all 0.2s ease;
}

.afbeelding-resizer-card-slider-section input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 4px 15px rgba(147, 51, 234, 0.7);
}

.afbeelding-resizer-card-slider-section input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-purple-dark));
  cursor: pointer;
  border: 3px solid #1a1f2e;
  box-shadow: 0 2px 10px rgba(147, 51, 234, 0.5);
  transition: all 0.2s ease;
}

.afbeelding-resizer-card-slider-section input[type="range"]::-moz-range-thumb:hover {
  transform: scale(1.2);
}

/* Quick Buttons */
.afbeelding-resizer-card-quick-buttons {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}

.afbeelding-resizer-card-quick-buttons button {
  background: var(--overlay-dark);
  border: 2px solid var(--border-dark);
  border-radius: 8px;
  padding: 12px 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.afbeelding-resizer-card-quick-buttons button:hover {
  background: var(--overlay-light);
  border-color: var(--accent-purple);
  color: var(--accent-purple);
  transform: translateY(-2px);
}

.afbeelding-resizer-card-quick-buttons button.active {
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-purple-dark));
  border-color: var(--accent-purple);
  color: white;
  box-shadow: 0 4px 15px rgba(147, 51, 234, 0.4);
}

/* Format Selection */
.afbeelding-resizer-card-format-section label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.afbeelding-resizer-card-format-section select {
  width: 100%;
  padding: 14px 16px;
  background: var(--overlay-dark);
  color: var(--text-primary);
  border: 2px solid var(--border-dark);
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
}

.afbeelding-resizer-card-format-section select:hover {
  border-color: var(--accent-purple);
}

.afbeelding-resizer-card-format-section select:focus {
  outline: none;
  border-color: var(--accent-purple);
  box-shadow: 0 0 20px rgba(147, 51, 234, 0.2);
}

/* Action Buttons */
.afbeelding-resizer-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 20px;
}

.afbeelding-resizer-card-actions button {
  padding: 16px 24px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
}

.afbeelding-resizer-card-actions button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.afbeelding-resizer-card-actions button:hover::before {
  width: 800px;
  height: 800px;
}

.afbeelding-resizer-card-btn-icon {
  font-size: 1.2rem;
}

.afbeelding-resizer-card-btn-primary {
  background: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-purple-dark) 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(147, 51, 234, 0.4);
}

.afbeelding-resizer-card-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(147, 51, 234, 0.6);
}

.afbeelding-resizer-card-btn-primary:active {
  transform: translateY(0);
}

.afbeelding-resizer-card-btn-secondary {
  background: linear-gradient(135deg, var(--button-primary-bg) 0%, var(--button-primary-hover) 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(35, 134, 54, 0.4);
}

.afbeelding-resizer-card-btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(35, 134, 54, 0.6);
}

.afbeelding-resizer-card-btn-secondary:active {
  transform: translateY(0);
}

/* Note */
.afbeelding-resizer-card-note {
  text-align: center;
  padding: 14px;
  background: var(--overlay-dark);
  border-radius: 10px;
  border: 1px solid var(--border-dark);
}

.afbeelding-resizer-card-note small {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Responsive - Tablet */
@media (max-width: 768px) {
  .afbeelding-resizer-card {
    padding: 25px 20px;
  }

  .afbeelding-resizer-card h1 {
    font-size: 1.6rem;
  }

  .afbeelding-resizer-card-subtitle {
    font-size: 0.85rem;
    margin-bottom: 20px;
  }

  .afbeelding-resizer-card-upload-area {
    padding: 35px 25px;
  }

  .afbeelding-resizer-card-preview-section {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .afbeelding-resizer-card-quick-buttons {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Responsive - Mobile */
@media (max-width: 480px) {
  .afbeelding-resizer-card {
    padding: 20px 15px;
    border-radius: 16px;
  }

  .afbeelding-resizer-card h1 {
    font-size: 1.4rem;
  }

  .afbeelding-resizer-card-subtitle {
    font-size: 0.8rem;
  }

  .afbeelding-resizer-card-upload-area {
    padding: 30px 20px;
  }

  .afbeelding-resizer-card-upload-area svg {
    width: 48px;
    height: 48px;
  }

  .afbeelding-resizer-card-upload-title {
    font-size: 1rem;
  }

  .afbeelding-resizer-card-upload-hint {
    font-size: 0.85rem;
  }

  .afbeelding-resizer-card-controls {
    padding: 20px;
  }

  .afbeelding-resizer-card-quick-buttons {
    grid-template-columns: repeat(2, 1fr);
  }

  .afbeelding-resizer-card-actions {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .afbeelding-resizer-card-actions button {
    padding: 14px 20px;
    font-size: 0.95rem;
  }

  .afbeelding-resizer-card-note small {
    font-size: 0.85rem;
  }
}

/* Extra small screens */
@media (max-width: 375px) {
  .afbeelding-resizer-card {
    padding: 16px 12px;
  }

  .afbeelding-resizer-card h1 {
    font-size: 1.3rem;
  }

  .afbeelding-resizer-card-subtitle {
    font-size: 0.75rem;
  }

  .afbeelding-resizer-card-quick-buttons button {
    padding: 10px 6px;
    font-size: 0.85rem;
  }
}